package com.dianxin.smartpark.service.weChat;

import com.chinatelecom.response.common.CommonResponseBody;
import com.dianxin.smartpark.dao.dataobject.weChat.MobileRequest;

import javax.servlet.http.HttpServletResponse;

/**
 * @program: smart-park
 * @description: 微信小程序
 * @author: chenyong
 * @create: 2021-08-26 19:12
 */
public interface WeChatService {

    /**
     * 通过code获取open_id
     * @Description:  通过code获取open_id
     * @Author: ChenYong
     * @Date: 2021/8/26 0026
     * @param code:
     * @Return: CommonResponseBody
     */
    CommonResponseBody sign(String code);


    /**
     * 通过code获取手机号
     * @Description:  通过code获取手机号
     * @Author: ChenYong
     * @Date: 2021/8/27 0027
     * @param mobileRequest:
     * @Return: CommonResponseBody
     */
    CommonResponseBody getPhoneNumber(MobileRequest mobileRequest);

    CommonResponseBody getWeChatCode(MobileRequest mobileRequest);


}
